package swind.web.vo;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

public class TeaGetStudentVo {
	
	@NotEmpty(message="id不能为空")
	@Length(max=10)
	private String userId;
	
	@NotEmpty(message="用户名不能为空")
	@Length(max=45)
	private String userName;
	
	@NotNull(message="性别不能为空")
	private Integer gender;
	
	//@NotEmpty
	@Pattern(regexp="\\d{2}/\\d{2}/\\d{4}",message="时间格式不正确（mm/dd/yyyy）")
	//@DateTimeFormat(pattern="MM/dd/yyyy")
	private String strbirthday;
	
	private String tel;
	private String address;
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}



	public String getStrbirthday() {
		return strbirthday;
	}

	public void setStrbirthday(String strbirthday) {
		this.strbirthday = strbirthday;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	
}
